#ifndef __PAGEDATA_H_
#define __PAGEDATA_H_

#include <Arduino.h>
#include "page.h"

uint8_t sclen = 4;
String slc0[]={"hello world","show temperature","open LED","wozhennubi"};
String slc1[]={"Hello", "World", "this is inpage"};
String slc2[]={"show", "temperature", "shi du"};
String slc3[]={"set", "led"};
Menu_UI ui_pages[4] = {
    Menu_UI(2,"M E N U", slc0, 4, TFT_WHITE, TFT_GREEN), 
    Menu_UI(2,"H E L L O", slc1, 3, TFT_WHITE, TFT_SKYBLUE),
    Menu_UI(2,"Temperature", slc2, 3, TFT_WHITE, TFT_RED),
    Menu_UI(2,"L E D", slc3, 2, TFT_WHITE, TFT_YELLOW),
};
Page_UI pages[4]{
    Page_UI(2, "hello", "../text.jpg", TFT_WHITE, TFT_GREEN),
    Page_UI(2, "temper", "../text.jpg", TFT_WHITE, TFT_RED),
    Page_UI(2, "humidity", "../text.jpg", TFT_WHITE, TFT_SKYBLUE),
    Page_UI(2, "lighting", "../text.jpg", TFT_WHITE, TFT_DARKGREY)
};
short pageNum = 4;
short nowPage = 0;
// int nowpage = 0; //当前页数
// int cursor = 0; //当前光标
// int rowsor[5] = {34, 52, 70, 88, 100};
bool changePage = false;

#endif